package cn.ilovese.collect.datamapper.report;

import cn.ilovese.collect.po.report.Score;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Score record);

    int insertSelective(Score record);

    Score selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Score record);

    int updateByPrimaryKey(Score record);

    int deleteByReportIdAndWorkId(@Param("reportId")Integer reportid, @Param("userId")Integer userid);

    Score selectByWorkerAndReport(@Param("reportId")Integer reportid, @Param("userId")Integer userid);

    List<Score> selectByReportId(Integer reportid);
    List<Score> selectByWorker(Integer userid);

}